package cn.kgc.ssm.web.service;

import cn.kgc.ssm.web.entity.User;
import cn.kgc.ssm.web.form.LoginForm;
import cn.kgc.ssm.web.response.ResponseResult;

import javax.servlet.http.HttpSession;

/**
 * @author 课工场
 * @date 2024/7/26
 * @description
 */
public interface UserService {

    ResponseResult login(LoginForm loginForm, HttpSession session);

    ResponseResult userPage(Integer page, Integer limit,String username,Integer age);

    ResponseResult addUser(User user);

    ResponseResult editUser(User user);

    ResponseResult batchDelete(Integer[] ids);

    ResponseResult resetPassword(Integer id);

    ResponseResult getPersonInfo(String username);

    ResponseResult editPersonalPassword(String oldPassword, String newPassword, HttpSession session);
}
